from fastapi import FastAPI
from backend.api.v1.test import router as test_router
from backend.api.v1.user import router as user_router
from backend.api.v1.auth import router as auth_router
from backend.api.v1.dashboard import router as dashboard_router
from backend.api.v1.ws import router as ws_router
from backend.api.v1.request_log import router as request_log_router
from backend.api.v1.brac import router as brac_router
from backend.api.v1.department import router as department_router
from backend.api.v1.agent import router as agent_router
from backend.api.v1.upload import router as upload_router


def register_routers(app: FastAPI):
    """
    注册路由
    """
    app.include_router(ws_router, prefix="", tags=["WebSocket"])
    app.include_router(auth_router, prefix="/api", tags=["Auth"])
    app.include_router(dashboard_router, prefix="/api", tags=["Dashboard"])
    app.include_router(user_router, prefix="/api/v1", tags=["User"])
    app.include_router(department_router, prefix="/api/v1", tags=["Department"])
    app.include_router(agent_router, prefix="/api/v1", tags=["Agent"])
    app.include_router(upload_router, prefix="/api/v1", tags=["Upload"])
    app.include_router(brac_router, prefix="/api/v1", tags=["BRAC"])
    app.include_router(request_log_router, prefix="/api/v1", tags=["Request Log"])
    app.include_router(test_router, prefix="/api/v1", tags=["Test"])
    
